package com.jsu.springboot_crop.service;

import com.github.pagehelper.PageInfo;
import com.jsu.springboot_crop.entity.User;

import java.util.List;

public interface UserService {
    List<User> selectAll();

    // 根据用户名查询
    User selectByUserName(String userName);
    //    修改用户信息
    int updateByPrimaryKeySelective(User user);

    //    删除用户信息
    int deleteByPrimaryKey(String userName);
    //增加用户
    void add(User user);
    PageInfo<User> findPage(Integer pageNum);

    PageInfo<User> findPage(User user, Integer pageNum, Integer pageSize);

    void loginUpdateByUsername(User user);
}
